<?PHP
class Security
{
	private static $fileName = 'users.info';

	public static function Login($login, $password)
	{
		$strUsers = file(self::$fileName);

		foreach ( $strUsers as $userLine )
		{
			$userArgs = preg_split('/[\r\t]+/', $userLine);

			if ( ( strcmp($userArgs[0], $login) == 0 ) && ( strcmp($userArgs[1], $password) == 0 ) )
			{
				return true;
			}
		}

		return false;
	}
}
?>
